/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.AccountDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface AccountInterface {

    ArrayList<AccountDTO> readByAll();

    String readPassWord(String userName);

    AccountDTO findByUserName(String userName);

    ArrayList<AccountDTO> findByRole(int roleId);

    ArrayList<AccountDTO> findByFullName(String fullName);

    boolean create(AccountDTO acc);

    boolean update(AccountDTO acc);

    boolean delete(AccountDTO acc);

    boolean delete(String userName);
}
